package com.hzzy.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hzzy.IDao.HzClassDaycourseMapper;
import com.hzzy.service.HzClassDaycourseService;

@Service
public class HzClassDaycourseServiceImpl implements HzClassDaycourseService {

	@Autowired
	private HzClassDaycourseMapper hzClassDayCourseMapper;
	
	
	
	public int updateIsCheckins(String id) {
		Map<String, Object> conditions = new HashMap<String, Object>();
		conditions.put("id", Integer.parseInt(id));
		conditions.put("isCheckins", IS_CHECKINS_STATE);
		return hzClassDayCourseMapper.updateById(conditions);
	}



	public int updateIsChangeCourse(String id) {
		Map<String, Object> conditions = new HashMap<String, Object>();
		conditions.put("id", Integer.parseInt(id));
		conditions.put("isChangeCourse", IS_CHANGE_COURSE);
		return hzClassDayCourseMapper.updateById(conditions);
	}

	
}
